extends CanvasLayer

var score = 0 #得分

func _ready():
	pass # Replace with function body.


func add_score(num:int) -> void:
	score += num
	$Label.text = str("score:" + str(score))


func _on_coin_eat_coin():
	add_score(1)
	pass # Replace with function body.
